package com.hjtech.user.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.hjtech.base.base.BaseActivity;
import com.hjtech.base.router.provider.IUserProvider;
import com.hjtech.user.R;
import com.hjtech.user.contact.UserContact;
import com.hjtech.user.presenter.UserPresenter;

@Route(path = IUserProvider.USER_MAIN_PATH)
public class UserActivity extends BaseActivity<UserPresenter> implements UserContact.view {


    private TextView textView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user);

        textView = (TextView) findViewById(R.id.tv_test);
        presenter.getStr();
    }

    @Override
    public UserPresenter initPresenter() {
        return new UserPresenter(this);
    }

    @Override
    public void setStr(String str) {
        textView.setText(str);
    }
}
